package com.tools.security.base;

import com.tools.model.entity.InfoEntity;
import lombok.Data;
import lombok.Getter;

@Data
public class AuthToken {
    private String accessToken;
    private boolean isDoctor;
    private InfoEntity info;

    public enum Action {
        LOGIN_SUCCESS("success"),
        LOGIN_NEED_CODE("code");
        @Getter
        private final String desc;

        Action(String desc) {
            this.desc = desc;
        }
    }
}
